]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnails: remove custom scrolling code
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 25 Feb 2013 23:23:42 +0000 (18:23 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 25 Feb 2013 23:23:42 +0000 (18:23 -0500)
Now that we listen to scroll event on the whole overview group, this
makes the thumbnail switcher scroll twice per-event.

js/ui/workspaceThumbnail.js

index aaf2015d38f82c15b11f31399ce568046d0e6585..540f3d30df46e85938ca00fc7471f1f0782e720d 100644 (file)
@@ -551,7 +551,6 @@ const ThumbnailsBox = new Lang.Class({
 
         this.actor.connect('button-press-event', function() { return true; });
         this.actor.connect('button-release-event', Lang.bind(this, this._onButtonRelease));
-        this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent));
 
         Main.overview.connect('showing',
                               Lang.bind(this, this._createThumbnails));
@@ -1215,16 +1214,5 @@ const ThumbnailsBox = new Lang.Class({
                            },
                            onCompleteScope: this
                          });
-    },
-
-    _onScrollEvent: function (actor, event) {
-        switch (event.get_scroll_direction()) {
-        case Clutter.ScrollDirection.UP:
-            Main.wm.actionMoveWorkspace(Meta.MotionDirection.UP);
-            break;
-        case Clutter.ScrollDirection.DOWN:
-            Main.wm.actionMoveWorkspace(Meta.MotionDirection.DOWN);
-            break;
-        }
     }
 });